//
//  KDSettingCollectionViewCell.m
//  LaiKeDaoClient
//
//  Created by dongkedi的iMac on 15/11/6.
//  Copyright © 2015年 LKD. All rights reserved.
//

#import "KDSettingCollectionViewCell.h"

@implementation KDSettingCollectionViewCell

-(id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.cellIsSelect = NO;
        backView = [[UIView alloc] initWithFrame:(CGRect){0.9,1,WIDTH(self)-1.2,HEIGHT(self)-1}];
        [backView setBackgroundColor:[UIColor whiteColor]];
        [self addSubview:backView];
    }
    return self;
}

- (UIImageView *)starImageView
{
    if (!_starImageView) {
        _starImageView = [[UIImageView alloc] initWithFrame:(CGRect){(WIDTH(backView)-22)/2,(HEIGHT(backView)-22)/2,22,23}];
        [_starImageView setImage:[UIImage imageNamed:@"star_visit_empty.png"]];
        [backView addSubview:self.starImageView];
    }
    return _starImageView;
}

- (UILabel *)dateLabel
{
    if (!_dateLabel) {
        _dateLabel = [[UILabel alloc] initWithFrame:backView.bounds];
        [_dateLabel setTextAlignment:NSTextAlignmentCenter];
        [_dateLabel setFont:[UIFont systemFontOfSize:12]];
        [_dateLabel setTextColor:[UIColor colorWithHexString:@"#aaaaaa"]];
        [backView addSubview:_dateLabel];
    }
    return _dateLabel;
}

@end
